package com.taxis.action;

import javax.servlet.http.HttpServletRequest;
import org.apache.struts2.interceptor.ServletRequestAware;
import com.opensymphony.xwork2.ActionSupport;

@SuppressWarnings("serial")
public class LogoutAction extends ActionSupport implements ServletRequestAware {
    private HttpServletRequest request;
    public void setServletRequest(HttpServletRequest httpServletRequest) {
        this.request=httpServletRequest;
    }
    public String execute() throws Exception {
        request.getSession().invalidate();
        return SUCCESS;
    }
}